import PyV8
from window import *
from document import *

class Navigator(PyV8.JSClass):
	def __init__(self):
		self.appCodeName 	 = ''
		self.appMinorVersion = ''
		self.appName		 = ''
		self.cookieEnabled	 = ''
		self.cpuClass		 = ''
		self.mimeTypes		 = ''
		self.onLine			 = True
		self.opsProfile		 = ''
		self.platform		 = ''
		self.plugins		 = []
		self.systemLanguage  = ''
		self.userAgent	     = ''
		self.userLanguage	 = ''
		self.userProfile	 = ''
		self.window			 = Window()
		self.document		 = Document() # Should be in Window, however fails there
		
	# Need reference to window functions
	def alert(self, msg):
		self.window.alert(msg)
